//
//  calendarViewController.m
//  InSuger
//
//  Created by dllo on 15/12/4.
//  Copyright © 2015年 Dior_3g. All rights reserved.
//

#import "calendarViewController.h"
#import "VRGCalendarView.h"
@interface calendarViewController ()<VRGCalendarViewDelegate>

@end

@implementation calendarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
//    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"rili2.jpg"]];
    UIImageView *myImageView= [[UIImageView alloc] initWithFrame:CGRectMake(23, 100, 320, 290)];
    myImageView.image = [UIImage imageNamed:@"rili1.jpg"];
    [self.view addSubview:myImageView];
    
    VRGCalendarView *calendar = [[VRGCalendarView alloc] init];
    calendar.backgroundColor = [UIColor redColor];
    [self.view addSubview:calendar];
    calendar.frame = CGRectMake(23, 100, 320, 0);
    calendar.alpha = 0.7;
}
-(void)calendarView:(VRGCalendarView *)calendarView switchedToMonth:(int)month targetHeight:(float)targetHeight animated:(BOOL)animated {
    
}

-(void)calendarView:(VRGCalendarView *)calendarView dateSelected:(NSDate *)date {
    NSLog(@"Selected date = %@",date);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
